﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	x:Class="SkypieeClient.AvatarInfo"
	x:Name="UserControl"
	Width="527" Height="227" Background="#FF000000" HorizontalAlignment="Center" Margin="0,-200,0,0" VerticalAlignment="Center">

	<UserControl.Resources>
	</UserControl.Resources>
	<UserControl.Triggers>
		<EventTrigger RoutedEvent="FrameworkElement.Loaded" SourceName="grid">
			<BeginStoryboard>
				<Storyboard>

					<ThicknessAnimation To="0,-200,0,0"
						Storyboard.TargetProperty="Margin"
						Duration="0:0:0.1" />
					<ThicknessAnimation To="0,0,0,0"
						Storyboard.TargetProperty="Margin"
						Duration="0:0:0.5" />
					<ThicknessAnimation To="0,20,0,0"
						Storyboard.TargetProperty="Margin"
						Duration="0:0:0.2" />
					<ThicknessAnimation To="0,0,0,0"
						Storyboard.TargetProperty="Margin"
						Duration="0:0:0.2" />


					<DoubleAnimation To="227"
						Storyboard.TargetProperty="Height"
						Duration="0:0:0.1" />
					<DoubleAnimation To="527"
						Storyboard.TargetProperty="Width"
						Duration="0:0:0.1" />
					<DoubleAnimation To="207"
						Storyboard.TargetProperty="Height"
						Duration="0:0:1" />
					<DoubleAnimation To="507"
						Storyboard.TargetProperty="Width"
						Duration="0:0:1" />
				</Storyboard>
			</BeginStoryboard>
		</EventTrigger>
	</UserControl.Triggers>

	<Grid Width="507" Height="207" x:Name="grid">

		<Grid x:Name="LayoutRoot">
			<Image x:Name="ImageAvatar" OpacityMask="{x:Null}" Source="{Binding Path=AvatarPath}" HorizontalAlignment="Left" Margin="8,8,0,99" Width="100"/>
			<Label Margin="134,8,0,0" Style="{DynamicResource SimpleLabel}" VerticalAlignment="Top" Height="14" Content="Skype name: " Foreground="#FFFFFFFF" HorizontalAlignment="Left" Width="86"/>
			<Label Style="{DynamicResource SimpleLabel}" Width="86" Height="14" Content="Display name:" Foreground="#FFFFFFFF" HorizontalAlignment="Left" Margin="134,44,0,0" VerticalAlignment="Top"/>
			<Label Style="{DynamicResource SimpleLabel}" Width="86" Height="14" Content="Full name:" Foreground="#FFFFFFFF" HorizontalAlignment="Left" Margin="134,26,0,0" VerticalAlignment="Top"/>


			<Button Height="50" Width="50" HorizontalAlignment="Left" Margin="8,0,0,24" Background="#FFFF0000" VerticalAlignment="Bottom" x:Name="ButtonStartCall" Click="ButtonStartCall_Click" ToolTip="Place call">
				<Button.Template>
					<ControlTemplate>
						<Grid>
							<Ellipse x:Name="MyEllipse" Height="{TemplateBinding Height}" Width="{TemplateBinding Width}" Opacity="0.75">
								<Ellipse.Fill>
									<LinearGradientBrush EndPoint="1.034,0.54" StartPoint="-0.035,0.519">
										<GradientStop Color="#FF000000" Offset="0"/>
										<GradientStop Color="#FF51FF00" Offset="1"/>
										<GradientStop Color="#FF58CF05" Offset="0.737"/>
										<GradientStop Color="#FF115D00" Offset="0"/>
									</LinearGradientBrush>
								</Ellipse.Fill>
							</Ellipse>
						</Grid>
					</ControlTemplate>
				</Button.Template>
			</Button>

			<Button Height="50" Width="50" HorizontalAlignment="Left" Margin="62,0,0,24" Background="#FFFF0000" VerticalAlignment="Bottom" x:Name="ButtonStopCall" Click="ButtonStopCall_Click" ToolTip="Finish call">
				<Button.Template>
					<ControlTemplate>
						<Grid>
							<Ellipse x:Name="MyEllipse" Height="{TemplateBinding Height}" Width="{TemplateBinding Width}" Opacity="0.75">
								<Ellipse.Fill>
									<LinearGradientBrush EndPoint="1.034,0.54" StartPoint="-0.035,0.519">
										<GradientStop Color="#FF000000" Offset="0"/>
										<GradientStop Color="#FFFF0000" Offset="1"/>
										<GradientStop Color="#FFFF0000" Offset="0.737"/>
										<GradientStop Color="#FF710000" Offset="0"/>
									</LinearGradientBrush>
								</Ellipse.Fill>
							</Ellipse>
						</Grid>
					</ControlTemplate>
				</Button.Template>
			</Button>

			<Button Height="50" Width="50" HorizontalAlignment="Left" Margin="134,0,0,24" Background="#FFFF0000" VerticalAlignment="Bottom" x:Name="ButtonChat" ToolTip="Chat" Click="ButtonChat_Click">
				<Button.Template>
					<ControlTemplate>
						<Grid>
							<Ellipse x:Name="MyEllipse" Height="{TemplateBinding Height}" Width="{TemplateBinding Width}" Opacity="1">
								<Ellipse.Fill>
									<LinearGradientBrush EndPoint="1.034,0.54" StartPoint="-0.035,0.519">
										<GradientStop Color="#FF000000" Offset="0"/>
										<GradientStop Color="#FF0026FF" Offset="1"/>
										<GradientStop Color="#FF053FCF" Offset="0.737"/>
										<GradientStop Color="#FF00125D" Offset="0"/>
									</LinearGradientBrush>
								</Ellipse.Fill>
							</Ellipse>
						</Grid>
					</ControlTemplate>
				</Button.Template>
			</Button>

			<Button HorizontalAlignment="Right" Margin="0,8,8,0" Style="{DynamicResource SimpleButton}" VerticalAlignment="Top" Width="13" Height="14" Content="X" BorderThickness="0,0,0,0" IsCancel="True" IsDefault="True" x:Name="ButtonCancel" Click="ButtonCancel_Click">
				<Button.Background>
					<LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
						<GradientStop Color="#FFEEEEEE" Offset="0"/>
						<GradientStop Color="#FFFF0000" Offset="1"/>
					</LinearGradientBrush>
				</Button.Background>
				<Button.BorderBrush>
					<LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
						<GradientStop Color="#FFCCCCCC" Offset="0"/>
						<GradientStop Color="#FFFF0000" Offset="1"/>
					</LinearGradientBrush>
				</Button.BorderBrush>
			</Button>

			<Label Style="{DynamicResource SimpleLabel}" Height="14" Content="{Binding Path=Handle}" Foreground="#FFFFFFFF" Margin="220,8,117,0" VerticalAlignment="Top"/>
			<Label Style="{DynamicResource SimpleLabel}" Height="14" Content="{Binding Path=DisplayName}" Foreground="#FFFFFFFF" Margin="220,44,117,0" VerticalAlignment="Top"/>
			<Label Style="{DynamicResource SimpleLabel}" Height="14" Content="{Binding Path=FullName}" Foreground="#FFFFFFFF" Margin="220,26,117,0" VerticalAlignment="Top"/>
			<Label Style="{DynamicResource SimpleLabel}" Width="86" Height="14" Content="Last online:" Foreground="#FFFFFFFF" HorizontalAlignment="Left" Margin="134,72,0,0" VerticalAlignment="Top"/>
			<Label Style="{DynamicResource SimpleLabel}" Height="14" Content="{Binding Path=IUser.LastOnline}" Foreground="#FFFFFFFF" Margin="220,72,117,0" VerticalAlignment="Top"/>
			<Label Style="{DynamicResource SimpleLabel}" Width="86" Content="Homepage:" Foreground="#FFFFFFFF" HorizontalAlignment="Left" Margin="134,86,0,0" VerticalAlignment="Top" Height="14"/>
			<Label Style="{DynamicResource SimpleLabel}" Content="{Binding Path=IUser.Homepage}" Foreground="#FFFFFFFF" Margin="220,86,117,0" VerticalAlignment="Top" Height="14"/>
			<Label Style="{DynamicResource SimpleLabel}" Width="86" Content="Language:" Foreground="#FFFFFFFF" HorizontalAlignment="Left" Margin="134,100,0,93"/>
			<Label Style="{DynamicResource SimpleLabel}" Content="{Binding Path=IUser.Language}" Foreground="#FFFFFFFF" Margin="220,100,117,93"/>
			<Label Style="{DynamicResource SimpleLabel}" Content="{Binding Path=IUser.RichMoodText}" Foreground="#FFFFFFFF" Height="66" Margin="220,0,8,8" VerticalAlignment="Bottom"/>
			<Label HorizontalAlignment="Left" Style="{DynamicResource SimpleLabel}" VerticalAlignment="Bottom" Height="13" Content="Place call" Foreground="#FFFFFFFF" Margin="8,0,0,7" Width="50" HorizontalContentAlignment="Center"/>
			<Label Style="{DynamicResource SimpleLabel}" Width="50" Height="13" Content="Finish call" Foreground="#FFFFFFFF" HorizontalAlignment="Left" Margin="62,0,0,7" VerticalAlignment="Bottom" HorizontalContentAlignment="Center"/>
			<Label Style="{DynamicResource SimpleLabel}" Width="50" Height="13" Content="Start chat" Foreground="#FFFFFFFF" HorizontalAlignment="Left" Margin="134,0,0,7" VerticalAlignment="Bottom" HorizontalContentAlignment="Center"/>
		<CheckBox Margin="134,0,0,72" Style="{DynamicResource SimpleCheckBox}" Content="Record call (not implemented yet)" IsEnabled="True" HorizontalAlignment="Left" VerticalAlignment="Bottom" Width="185" Height="17" Foreground="#FFFFFFFF"/>
		</Grid>






	</Grid>
</UserControl>